package com.gjy.spring.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-01-23 14:44:16
 */
@RequestMapping("/test")
@RestController
public class TestController {

    @PostMapping("/hello")
    public String hello(@RequestBody Map<String, String> map) {
        return map.toString();
    }
}
